package cn.iocoder.yudao.module.book.controller.app.users.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class AppUserProfileUpdateReqVO {

    @Schema(description = "昵称 2-20 字")
    @Size(min = 2, max = 20, message = "昵称长度需在2-20个字符之间")
    private String nickName;

    @Schema(description = "头像 URL")
    private String avatar;

    @Schema(description = "手机号")
    @Pattern(regexp = "^$|^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
}


